package com.eian.boot.module.system.role.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
@Schema(name = "分配角色权限请求参数")
public class RolePermissionAssignRequest {
    @Schema(description = "角色Id")
    @NotNull(message = "角色Id不能为空")
    private Long roleId;

    @Schema(description = "权限ID列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "权限列表不能为空")
    private List<Long> permIds;
}
